<%@page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html lang="zh-CN">
	<head>
		<meta charset="utf-8">
		<meta http-equiv="X-UA-Compatible" content="IE=edge">
		<meta name="viewport" content="width=device-width, initial-scale=1">
		<meta name="renderer" content="webkit">
		<meta name="applicable-device" content="pc,mobile">
    <title>用户管理</title>
    <!-- 使用load标签加载资源文件 -->
    <link rel="stylesheet" type="text/css" href="./assets/css/bootstrap.min.css">
    <script type="text/javascript" src="./assets/js/jquery-3.3.1.min.js"></script>
    <script type="text/javascript" src="./assets/js/bootstrap.min.js"></script>
</head>
<body>
<div class="container">
    <jsp:include page="header2.jsp"></jsp:include>
    <div class="row">
        <div class="col-md-2 text-center">
            <!-- 左侧菜单 -->
            <!-- 左侧4列 -->
            <!-- 非超级管理员是不允许进行系统管理操作的 -->
            <ul class="nav nav-pills nav-stacked">
                <li class="nav-header h3">系统管理</li>
                <li>
                    <a href="sitesettings.html"><span class="glyphicon glyphicon-cog"></span>&nbsp;网站管理</a>
                </li>
            </ul>
            <ul class="nav nav-pills nav-stacked">
                <li class="nav-header h3">用户管理</li>
                <li><a href="userlist.html"><span class="glyphicon glyphicon-user"></span>&nbsp;用户列表</a></li>
            </ul>
            <ul class="nav nav-pills nav-stacked">
                <li class="nav-header h3">文章管理</li>
                <li><a href="categorylist.html"><span class="glyphicon glyphicon-lock"></span>&nbsp;分类管理</a></li>
                <li><a href="articlelist.html"><span class="glyphicon glyphicon-list-alt"></span>&nbsp;文章管理</a></li>
            </ul>
        </div>
        <!-- 右侧功能区 -->
        <div class="col-md-10">
            <!-- 用户自定义区块 -->
            <h4 class="text-success text-center">用户管理</h4>
            <table class="table table-striped table-hover text-center">
                <tbody>
                <tr>
                    <td>ID</td>
                    <td>用户名</td>
                    <td>邮箱</td>
                    <td>手机号</td>
                    <td>注册时间</td>
                    <td>身份</td>
                    <td>状态</td>
                    <td colspan="2">操作</td>
                </tr>
                <tr>
                    <td>1</td>
                    <td>peter</td>
                    <td>peter@php.cn</td>
                    <td>18955132304</td>
                    <td>1516947541</td>
                    <td>
                        <span style="color:green">注册会员</span>
                    </td>
                    <td>
                        <span style="color:green">正常</span>
                    </td>

                    <!-- 非当前用户是不允许编辑其它用户资料的 -->
                    <!-- 当前用户是不能自己删除自己的 -->
                    <td><a href="userremove.html" onclick="remove();return false;">删除</a></td>
                </tr>
                <tr>
                    <td>4</td>
                    <td>admin</td>
                    <td>admin@php.cn</td>
                    <td>15899977665</td>
                    <td>0</td>
                    <td>
                        <span style="color:red">超级管理员</span>
                    </td>
                    <td>
                        <span style="color:green">正常</span>
                    </td>

                    <!-- 非当前用户是不允许编辑其它用户资料的 -->
                    <!-- 当前用户是不能自己删除自己的 -->
                    <td><a href="userremove.html" onclick="remove();return false;">删除</a></td>
                </tr>
                <tr>
                    <td>5</td>
                    <td>cqyhm</td>
                    <td>32033658@qq.com</td>
                    <td>13896018741</td>
                    <td>1535107859</td>
                    <td>
                        <span style="color:red">超级管理员</span>
                    </td>
                    <td>
                        <span style="color:green">正常</span>
                    </td>

                    <!-- 非当前用户是不允许编辑其它用户资料的 -->
                    <td><a href="useredit.html">编辑</a></td>
                    <!-- 当前用户是不能自己删除自己的 -->
                </tr>
                </tbody>
            </table>

            <script>
                function remove() {
                    if (confirm('您真的要删除吗?') == true) {
                        window.location.href = "/admin.php/user/doremove/id/5.html"
                    }
                }
            </script>
        </div>
    </div>
</div>
</body>
</html>